package com.sxj.PDMS.mapper;

import com.sxj.PDMS.model.entity.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author sunxi
 * @description 针对表【notice】的数据库操作Mapper
 * @createDate 2024-06-15 21:38:27
 * @Entity com.sxj.PDMS.model.entity.Notice
 */
public interface NoticeMapper extends BaseMapper<Notice> {

    @Select("select * from notice limit #{start},#{pageSize}")
    List<Notice> selectAll(@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    @Select("select count(*) from notice")
    Long selectTotal();
}




